package Vista;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped

public class AccessBean {

    private String name;
    private String password;

    public AccessBean() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String validarLogin(){
       if(name.equals("amalia")&&password.equals("234")){
        return "MenuPrincipal";
       }else{
     return "no validos";
      }
    }
}